package com.zwk.gulimall.product.service;

import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zwk.common.utils.PageUtils;
import com.zwk.gulimall.product.annotation.RelationMethod;
import com.zwk.gulimall.product.entity.BrandEntity;
import com.zwk.gulimall.product.entity.CategoryBrandRelationEntity;
import com.zwk.gulimall.product.entity.CategoryEntity;
import org.springframework.context.event.EventListener;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author zhuwenkang
 * @email zhuwenkang@gmail.com
 * @date 2022-12-30 21:27:35
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    @EventListener
    void updateDetail(BrandEntity brandEntity);

    @EventListener
    void updateDetail(CategoryEntity categoryEntity);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

